package com.ofek.eventos;

import java.io.File;

import android.os.Environment;

public class Constants {
	public static final long DAILY = 1000*60*60*24;
	public static final long WEEKLY = DAILY*7;
	public static final long MONTHLY = WEEKLY*4;
	public static final long YEARLY = DAILY*365;
	public static final String EVENT_NOTIFY_EVENT_SET_CHANGED = "EVENT_NOTIFY_DATA_SET_CHANGED";
	public static final String CONTEXT_DB = "contexts.dat";
	public static final File EVENTOS_DEBUG_FILE;
	public static final File EVENTOS_FOLDER;
	public static final String SERVER_IP = "5.29.150.186";
	//public static final String SERVER_IP = "192.168.1.11";
	public static File EVENTOS_DB_FILE = null;
	public static File EVENTOS_LOCAL_DB_FILE = null;
	public static File EVENTOS_REQUEST_DB_FILE = null;
	public static File EVENTOS_CONTEXT_DB_FILE;
	public static File EVENTOS_REMOTE_DB_FILE = null;
	static {
		EVENTOS_FOLDER = new File(Environment.getExternalStorageDirectory(),"Eventos");
		EVENTOS_FOLDER.mkdirs();
		EVENTOS_DEBUG_FILE = new File(EVENTOS_FOLDER,"debug.txt");
		EVENTOS_DB_FILE = new File(Constants.EVENTOS_FOLDER,"db.sql");
		EVENTOS_LOCAL_DB_FILE = new File(Constants.EVENTOS_FOLDER,"local.sql");
		EVENTOS_REQUEST_DB_FILE = new File(Constants.EVENTOS_FOLDER,"request.sql");
		EVENTOS_REMOTE_DB_FILE = new File(Constants.EVENTOS_FOLDER,"remote.sql");
		EVENTOS_CONTEXT_DB_FILE = new File(Constants.EVENTOS_FOLDER,CONTEXT_DB);
	}


	public static final long TYPE_ID_BUY_LIST = 0;
	public static final long TYPE_ID_DIARY = 1;
	public static final String EXTRA_DATA = "EXTRA_DATA";
	public static final String EDIT_REQUEST = "EDIT_REQUEST";
	protected static final String ADD_REQUEST = "ADD_REQUEST";
	public static final String EVENT_NOTIFY_PAGE_SET_CHANGED = "EVENT_NOTIFY_PAGE_SET_CHANGED";


}
